/* ===== RESET GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Impede rolagem lateral em dispositivos móveis */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* ===== BODY ===== */
body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #000;
  color: #fff;
  background-image: url("FUNDO BODY.png");
  background-size: auto;
  background-position: center;
  background-attachment: fixed;
  padding-top: 120px; /* evita sobreposição do header fixo */
}

/* ===== CABEÇALHO FIXO ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  background-color: #111; /* leve transparência */
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo img {
  height: 100px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .logo img {
    height: 60px;
  }
}

/* ===== MENU ===== */
nav {
  flex: 1;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 0;
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: #00AFEF;
  transition: 0.3s;
  font-weight: 500;
}

nav ul li a:hover {
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 10px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  margin-bottom: 20px;
}

.btn {
  background: #00AFEF;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.btn:hover {
  background: #0091c7;
}

/* ===== SEÇÕES ===== */
section {
  padding: 60px 20px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* ===== CONTEÚDO DAS SEÇÕES ===== */
section .conteudo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

section .texto,
section .imagem {
  flex: 1 1 45%;
  text-align: left;
}

section .imagem img {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

/* ===== SERVIÇOS ===== */
.servicos .cards {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.servicos .card {
  background: #00AFEF;
  color: #fff;
  padding: 20px;
  flex: 1 1 280px;
  margin: 10px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.servicos .card:hover {
  transform: translateY(-5px);
}

/* ===== PORTFÓLIO ===== */
.portfolio {
  padding: 60px 20px;
  background: transparent;
  text-align: center;
  width: 100%;
}

.portfolio h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #fff;
}

.portfolio-box {
  background: #fff;
  margin: 20px auto;
  max-width: 900px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.portfolio-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.portfolio-texto {
  padding: 20px;
  text-align: left;
}

.portfolio-texto h3 {
  margin-bottom: 10px;
  color: #111;
  font-size: 1.4rem;
}

.portfolio-texto p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

/* ===== FORMULÁRIO DE CONTATO ===== */
.contato {
  background: rgba(255,255,255,0.05);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.contato h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #00AFEF;
}

.contato form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contato input,
.contato textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid #00AFEF;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  resize: none;
}

.contato input::placeholder,
.contato textarea::placeholder {
  color: #ccc;
}

.contato button {
  background: #00AFEF;
  border: none;
  color: #fff;
  font-weight: bold;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contato button:hover {
  background: #0091c7;
  transform: translateY(-2px);
}

/* ===== BOTÃO WHATSAPP ===== */
.whatsapp-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #25d366;
  color: white;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  z-index: 1000;
}

.whatsapp-button:hover {
  background: #1ebe5d;
}

/* ===== RODAPÉ ===== */
.instagram-link img {
  transition: transform 0.3s ease;
}

.instagram-link img:hover {
  transform: scale(1.2);
}
footer {
  background: #111;
  color: #fff;
  padding: 20px;
  text-align: center;
}

/* ===== MEDIA QUERIES ===== */

/* Tablet */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2rem;
  }

  nav ul {
    gap: 20px;
  }
}

/* Celular */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  section .conteudo {
    flex-direction: column;
    text-align: center;
  }

  section .texto {
    text-align: center;
  }

  .hero {
    padding: 40px 20px;
  }

  .portfolio-box {
    margin: 15px;
  }

  .servicos .cards {
    flex-direction: column;
    align-items: center;
  }
}